<template>
  <div>
    <van-nav-bar
      :title="title"
      left-arrow
      @click-left="onClickLeft"
    />
  </div>
</template>

<script>
  export default{
    name: 'NavBar',
    props:['title'],
    data() {
      return {

      }
    },
    methods: {
      // 返回
      onClickLeft() {
        this.$router.go(-1)
      },

    },
  }
</script>

<style>
</style>
